package tool;

import java.util.Enumeration;

public class EnumerationUtils {

	public static int getCount(Enumeration enumeration) {
		int count = 0;
		while (enumeration.hasMoreElements()) {
			enumeration.nextElement();
			count ++;
		}
		return count;
	}
}
